/*
 * com.toone.finger.controller.nio.common  2015-4-29
 *
 * Copyright 2010 Shenzhen TYDIC Information Technology Co.,Ltd.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package top.suven.base.common.util;



/**
 * @ClassName: Constant
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author Carson yuchanghong@tydic.com
 * @date 2015-4-29 上午8:07:26
 *
 */
public class Constant{
    /************************config begin****************************************/
    //广告播放时间
    public final static String AD_PLAY_TIME_KEY = "config_facility_advertisementtime";
    //普通设备赠送控制时间
    public final static String FREE_PAD_CONTROL_TIME_KEY = "config_facility_commoncontrol";
    //Vip设备赠送控制时间
    public final static String VIP_PAD_CONTROL_TIME_KEY = "config_facility_vipcontrol";
    //SVip设备赠送控制时间
    public final static String SVIP_PAD_CONTROL_TIME_KEY = "config_facility_svipcontrol";
    //普通设备首次赠送在线时间
    public final static String FREE_PAD_ONLINE_TIME_KEY = "config_facility_common";
    //普通设备再次赠送在线时间
    public final static String FREE_PAD_ONLINE_TIME_REAPPLY_KEY = "config_facility_reapply";
    //体验设备赠送在线时间，单位：小时
    public final static String PROBATION_PAD_ONLINE_TIME_KEY = "config_probation_pad_time";
    //游戏设备首次赠送在线时间，单位：小时
    public final static String GAME_PAD_ONLINE_TIME_KEY = "config_gamePad_online_time";
    //破解版剩余可申请数
    public final static String CONFIG_POJIE_LEFT_PAD_COUNT = "config_pojie_left_pad_count";
    //破解版配置--初始时间(小时)
    public final static String CONFIG_POJIE_INIT_TIME = "config_pojie_init_time";
    //设备过期提醒推送功能开关
    public final static String CONFIG_PUSH_PAD_EXPIRE_ON_OFF = "config_push_pad_expire_on_off";
    //vip设备赠送在线时间
    //public final static String VIP_PAD_ONLINE_TIME_KEY = "";
    //用户最大绑定普通设备数
    public final static String MAX_USER_BIND_PAD_COUNT_KEY = "config_member_facility";
    //用户最大绑定设备叔
    public final static String MAX_BIND_PAD_COUNT = "config_pad_facility";
    //体验设备可申请数
    public final static String CONFIG_USABLE_PROBATION_PAD = "config_usable_probation_pad";
    //渠道普通设备本时间段剩余可申请台数
    public final static String MAX_CHANNEL_BIND_PAD_COUNT_KEY = "config_channel_bind_pad_count";
    //用户最大绑定VIP设备数
    public final static String MAX_USER_BIND_VIP_PAD_COUNT_KEY = "config_member_vipfacility";
    //系统最多可以绑定普通设备数
    public final static String MAX_BIND_PAD_COUNT_KEY = "config_max_bind_pad_count";
    //系统剩余可以绑定普通设备数
    public final static String LEFT_BIND_PAD_COUNT_KEY = "config_left_bind_pad_count";
    //系统当前剩余可申请的游戏设备数
    public final static String CONFIG_LEFT_GAME_PAD_COUNT = "config_left_game_pad_count";
    //设备回收周期
    public final static String PAD_RECOVERY_CYCLE = "config_facility_ransom";
    //红豆转成在线时间比例
    public final static String EXCHANGE_ONLINE_TIME_RATE_KEY = "config_member_ormosia";
    //红豆转成vip在线时间比例
    public final static String EXCHANGE_ONLINE_TIME_RATE_VIP_KEY = "config_member_vipormosia";
    //红豆转成gvip在线时间比例
    public final static String EXCHANGE_ONLINE_TIME_RATE_GVIP_KEY = "config_member_gvipormosia";
    //广播播放的最大数量
    public final static String CONFIG_BROADCAST_PAGE_SIZE = "config_broadcast_page_size";
    //设备到期时间
    public final static String PAD_EXPIRED_REMINDED = "config_pad_expired_reminded";
    //订单超时失效时间/分钟
    public final static String ORDER_EXPIRED_TIME = "config_order_expired_time";
    //订单回调超时失效时间/分钟
    public final static String ORDER_CALLBACK_EXPIRED_TIME = "config_order_callback_expired_time";
    //夺宝过期时间
    public final static String TREASURE_PERIOD_EXPIRED_TIME = "config_treasure_period_expired_time";
    //校验ios用户登录的开关
    public final static String CHECK_IOS_USER_ON_OFF = "config_check_ios_user_on_off";
    //校验ios用户登录的截止时间
    public final static String CHECK_IOS_USER_TIME = "config_check_ios_user_time";
    //非工作室会员在工作室客户端登陆的开关
    public final static String CONFIG_CHECK_WINST_LOGIN = "config_check_winst_login";
    //工作室会员在红手指客户端登陆的开关
    public final static String CONFIG_CHECK_REDFINGER_LOGIN = "config_check_redfinger_login";
    //每月分享普通设备可以获得赠送时间的次数
    public final static String COMMONPAD_SHARE_TIMES = "config_commonPad_share_times";
    //分享普通设备可以获得赠送的天数
    public final static String COMMONPAD_SHARE_ADD_DAY = "config_commonPad_share_add_day";
    //普通设备申请后功能限时
    public final static String FREE_FIRST_LIMIT_TIME = "config_free_first_limit_time";
    //普通设备截图预览限时
    public final static String FREE_SCREEN_LIMIT_TIME = "config_free_screen_limit_time";
    //普通设备上传功能限时
    public final static String FREE_UPLOAD_LIMIT_TIME = "config_free_upload_limit_time";
    //普通设备微信功能限时
    public final static String FREE_WEIXIN_LIMIT_TIME = "config_free_weixin_limit_time";
    //每月分享普通设备可以获得赠送时间的次数
    public final static String GAMEPAD_SHARE_ADD_DAY = "config_gamePad_share_add_day";
    //分享普通设备可以获得赠送的天数
    public final static String GAMEPAD_SHARE_TIMES = "config_gamePad_share_times";
    //修改密码原密码最大错误次数
    public final static String MAX_UPDATE_PWD_ERROR_COUNT = "config_max_update_pwd_error_count";
    //返回给客户端是否使用新套餐页：1新页面，2或空为旧页面
    public final static String CONFIG_IS_NEW_GOODSPAGE = "config_is_new_goods_page";
    //设备剩余多长时间提醒（续费提醒）, 单位:分钟
    public final static String CONFIG_REMAINING_TIME = "config_remaining_time";
    //绑定间隔
    public final static String CONFIG_BIND_INTERVAL = "config_bind_interval";
    //提醒间隔
    public final static String CONFIG_REMIND_INTERVAL = "config_remind_interval";
    //每日提醒次数
    public final static String CONFIG_REMIND_COUNT = "config_remind_count";
    //是否从redis获取session数据的开关
    public final static String CONFIG_SESSION_FROM_REDIS = "config_session_from_redis";
    // 自行更换开关
    public final static String CONFIG_PAD_RENEWAL_ON_OFF = "config_pad_renewal_on_off";
    // 每日最多可更换设备数量
    public final static String CONFIG_PAD_RENEWAL_MAX_COUNT = "config_pad_renewal_max_count";
    // 设备离线数量阈值
    public final static String CONFIG_PAD_RENEWAL_OFFLINE_COUNT = "config_pad_renewal_offline_count";
    // 设备离线更换时间
    public final static String CONFIG_PAD_RENEWAL_TIME = "config_pad_renewal_time";
    //11月新手折扣活动赠送优惠劵的时长，单位小时
    public final static String CONFIG_NOVICE_COUPON_TIME = "config_novice_coupon_time";
    //12月新手折扣活动赠送优惠劵的时长，单位小时
    public final static String CONFIG_CHRISTMAS_COUPON_TIME = "config_christmas_coupon_time";

    public final static String CONFIG_FESTIVAL_COUPON_TIME = "config_festival_coupon_time";
    // 应用崩溃发送微信提醒是否入库
    public final static String CONFIG_APPCRASH_WEIXINREMIND_TODB = "config_appcrash_weixinremind_todb";
    //应用崩溃发送微信提醒是否发送给用户*
    public final static String CONFIG_APPCRASH_WEIXINREMIND_TOUSER = "config_appcrash_weixinremind_touser";
    // 应用崩溃多久后发送微信提醒发送给用户*
    public final static String CONFIG_APPCRASH_WEIXINREMIND_TOUSER_TIMEGT = "config_appcrash_weixinremind_touser_timegt";
    // 应用崩溃超过多久不发送发送微信提醒发送给用户*
    public final static String CONFIG_APPCRASH_WEIXINREMIND_TOUSER_TIMELT = "config_appcrash_weixinremind_touser_timelt";
    // 微信消息发送失败多长时间内重试发送*
    public final static String CONFIG_WEIXINREMIND_FAIL_RESEND_TIME_OUT = "config_weixinremind_fail_resend_time_out";
    // *游戏离线发送微信提醒是否入库
    public final static String CONFIG_OFFLINE_WEIXINREMIND_TODB = "config_offline_weixinremind_todb";
    // 游戏离线发送微信提醒是否发送给用户*
    public final static String CONFIG_OFFLINE_WEIXINREMIND_TOUSER = "config_offline_weixinremind_touser";
    //  vip升级gvip套餐天数
    public final static String CONFIG_UPGVIP_GOODS_DAY = "config_upgvip_goods_day";
    //  批量激活设备最大数量
    public final static String CONFIG_BATCH_ACTIVATION_PAD_COUNT = "config_batch_activation_pad_count";
    //  主文本短信通道配置
    public final static String CONFIG_SMS_TEXT_SEND_MAIN = "config_sms_text_send_main";
    //  主语音短信通道配置
    public final static String CONFIG_SMS_VOICE_SEND_MAIN = "config_sms_voice_send_main";
    //  备用文本短信通道配置
    public final static String CONFIG_SMS_TEXT_SEND_BACKUP = "config_sms_text_send_backup";
    //  备用语音短信通道配置
    public final static String CONFIG_SMS_VOICE_SEND_BACKUP = "config_sms_voice_send_backup";
    //  每个IP每天只能发送短信数
    public static final String CONFIG_SMS_IP_MAX_COUNT = "config_sms_ip_max_count";
    //  同一IP每天发送多少次需图形验证码
    public static final String CONFIG_SMS_IP_VERIFICATION_CODE = "config_sms_ip_verification_code";
    // 同一ip或cuid申请体验设备数量的时间限制
    public final static String CONFIG_TASTE_PAD_IP_LIMIT_TIME = "config_taste_pad_ip_limit_time";
    public final static String CONFIG_TASTE_PAD_IP_LIMIT_COUNT = "config_taste_pad_ip_limit_count";
    // 用户注册后申请体验设备有效时间（默认3天,单位分钟）
    public final static String CONFIG_TASTE_PAD_LIMIT_REG_TIME = "config_taste_pad_limit_reg_time";
    // ios appstore分配设备的设备池
    public static final String CONFIG_IOS_APPSTORE_PAD_POOL = "config_ios_appstore_pad_pool";
    // 脚本上传后缀判断规则:txt,q,se,prop,mq,lua,apk,zip,tsp
    public static final String CONFIG_SCRIPT_SUFFIX = "config_script_suffix";
    // 用户第一次登录是否自动绑定体验设备 1是0否
    public static final String CONFIG_AUTO_BIND_TASTE ="config_auto_bind_taste";
    // 渠道普通设备申请可控天数
    public static final String CONFIG_CHANNEL_COMMON = "config_channel_common";
    // 体验设备可控时间
    public static final String CONFIG_PROBATION_CONTROL_TIME = "config_probation_control_time";
    //截图命令时间间隔
    public final static String   CONFIG_TASK_TIME_OUT="config_task_timeout";
    //设备回收周期
    public final static String  CONFIG_CHANNEL_RANSOM= "config_channel_ransom";
    //登录失败时间限制
    public static final String LOGIN_ERROR_TIME = "config_login_error_time";
    //oauth认证服务器
    public static final String CONFIG_OAUTH_SERVER = "config_oauth_server";
    //授权码错误次数
    public static final String CONFIG_GRANT_ERROR_COUNT = "config_grant_error_count";
    //授权码错误次数redis时间
    public static final String CONFIG_GRANT_ERROR_TIME = "config_grant_error_time";
    //授权码最大申请台数
    public static final String CONFIG_GRANT_MAX = "config_grant_max";
    //红豆赠送活动开启时间
    public final static String CONFIG_RBC_START_TIME="config_rbc_start_time";
    //红豆赠送活动结束时间
    public final static String CONFIG_RBC_END_TIME="config_rbc_end_time";
    // 身份验证开关
    public final static String CHECK_IDENTITY_AUTH_ON_OFF = "config_identity_auth";
    /** 每个号码每天只能发送短信数*/
    public static final String CONFIG_SMS_DAY_MOBILE = "config_sms_day_mobile";
    /** 号码发送短信时间间隔(秒)*/
    public static final String CONFIG_SMS_MOBILE_INTERVAL = "config_sms_mobile_interval";
    /************************config end****************************************/


    public final static String LOGIN_GET_KEY = "ylrainbow";
    //getkey错误返回userid取模基数
    public final static int RANDOM_BASE_NUM = 45321;
    public final static String SUPER_USER = "super";
    public final static String LOGPAD_BIND = "bind";
    //最大绑定数
    public final static int MAX_BIND_PAD_SIZE = 1;
    //加密key长度
    public final static int SIGN_KEY_LENGTH = 32;
    //redis 有效时间
    public final static int SESSION_REDIS_TIMEOUT = 24*60*60;//2018-3-29 14:12:38需求说要改成72小时  //2018-4-10 14:21:56长宏说要改成24小时

    public final static int zero = 0;
    public final static int one = 1;
    public final static int three = 3;
    public final static int negative_one = -1;
    public final static int negative_two = -2;
    public final static int negative_three = -3;
    public final static int negative_free = -4;
    public final static int PAGESIZE = 50;
    public final static int PAGENUM = 1;
    public final static int PAGEMIN = 0;
    public final static int PAGEMAX = 40;

    public final static int IDENTITY_AUTH_ACCOUNT_MAX_COUNT = 1; // 同一账号第2次开始需要图形验证码
    public final static int IDENTITY_AUTH_IP_MAX_COUNT = 5; // 同一个ip超过5次开始需要图形验证码
    public final static int IDENTITY_AUTH_COUNT_EXPIRE_TIME = 86400; //消息过期时间--秒
    public final static int IDENTITY_AUTH_IP_EXPIRE_TIME = 86400; //消息过期时间--秒
    public final static String IDENTITY_AUTH_BY_NOWPAY = "1";
    public final static String IDENTITY_AUTH_BY_NOTHING = "0";


    /**上传状态的字典category*/
    public static final String GLOBAL_UPLOAD_STATUS = "global.upload_status";
    //sys_dict中catgory设备等级
    public static final String GLOBAL_PAD_MODEL = "global.pad_model";
    //sys_dict中红豆记录类型
    public static final String RBC_RECORD_TYPE = "rf_rbc_log.log_type";
    //sys_dict中订单状态
    public static final String ORDER_STATUS = "rf_order.order_status";
    //设备日志类型-绑定
    public static final String LOG_PAD_CATEGORY = "bind";
    //登录失败次数
    public static final String LOGIN_ERROR_COUNT = "login_error_count";
    /**用户登录，finger-bizserver  redis锁**/
    public final static String BIZ_SERVER_LOCK_ = "biz_server_lock_";
    //从reids中查询同一ip或cuid申请体验设备数量的时间限制(分钟)
    public static final int TASTE_PAD_IP_LIMIT_TIME = 10;
    //从reids中查询同一ip或cuid在一定时间内可申请体验设备的数量(个)
    public static final int TASTE_PAD_IP_LIMIT_COUNT = 1;
    /**设备授权码验证失败次数后需要验证码**/
    public static final int GRANTCODE_MAX_INVLID = 3;
    //设备授权码验证失败次数后需要验证码
    public static final int GRANT_CODE_MAX_INVALID = 3;
    //默认分组名称
    public final static String DEFAULT_GROUP_NAME = "默认分组";
    //支付方式图片尺寸
    public final static int PHONE_SIZE_480 = 480;
    public final static int PHONE_SIZE_720 = 720;
    public final static int PHONE_SIZE_1080 = 1080;
    public final static int ONE_DAY = 24 * 60 * 60 * 1000;
    //设备回收词语
    public final static String padRecoveryStr = "设备已经进入赎回期，将在%s小时内被收回";
    //设备到期词语
    public final static String padExpireReminded = "该设备于%s后到期,请及时续费";
    //GVIP的续费提醒 设备到期词语
    public final static String padExpireShow  = "您的云手机%s剩余时间不足%s天";
    public final static int TWEENTY_FOUR = 24;
    public final static int V2_1_39_android = 201039; //android默认版本2.1.39
    public final static int V1_1_10_ios = 101010; //ios默认版本1.1.10
    /**体验设备限制申请时间（分钟）*/
    public final static int TASTE_PAD_LIMIT_TIME_FROM_REG = 4320;

	/**绑定设备验证码发送次数*/
	public final static String CONFIG_BIND_PAD_TIME = "config_bind_pad_time";

    /**绑定设备发送短信最多次数*/
    public final static String CONFIG_BIND_PAD_SMS_COUNT = "config_bind_pad_sms_count";

	public final static String SEND_WECHART_ON_OFF = "send_wechart_on_off";//查询发送微信公告总开关
	public final static String WECHART_MESSAGE_LIMIT = "wechart_message_limit";//每次查询微信公告的条数（默认1000）
	public final static String SEND_WECHART_TIME_LESS = "send_wechart_time_less";//查询微信信息的时间限制（默认24小时）
}













